<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PollList.ascx.cs" Inherits="Controls_PollList" %>
<div>
    <p class="mediumText">
        <a href="/Default.aspx">Home</a> <%= GetCategoryPathLink() %> <%= GetCurrentSelection() %>
    </p>
</div>
<div class="largeText">
    <p>
        <a href="<%= GetListLink("HotPolls") %>" class="<%= GetListTypeLinkDecoration("HotPolls") %>">
            Hot Polls</a> | <a href="<%= GetListLink("NewPolls") %>" class="<%= GetListTypeLinkDecoration("NewPolls") %>">
                New Polls</a> | <a href="<%= GetListLink("TopPolls") %>" class="<%= GetListTypeLinkDecoration("TopPolls") %>">
                    Most Voted</a> | <a href="<%= GetListLink("RandomPolls") %>" class="<%= GetListTypeLinkDecoration("RandomPolls") %>">
                        Random Polls</a>
    </p>
</div>
<asp:Repeater ID="pollListRepeater" runat="server">
    <HeaderTemplate>
        <div class="pollListItems">
    </HeaderTemplate>
    <ItemTemplate>
        <div class="pollListItem">
            <div class="pollTitle">
                <span class="mediumText"><a href="/PollMain.aspx?id=<%# DataBinder.Eval(Container.DataItem,"Id") %>">
                    <%# DataBinder.Eval(Container.DataItem,"Title") %>
                </a></span><span class="smallText">In:
                    <%# DataBinder.Eval(Container.DataItem, "SimpleCategoryName")%>
                </span>
            </div>
            <%# DataBinder.Eval(Container.DataItem,"Description") %>
            <br />
            <br />
        </div>
        <br />
    </ItemTemplate>
    <FooterTemplate>
        </div>
        <div class="mediumText">
            <a href="<%= GetBackHref() %>">&lt;&lt;Back </a> | <a href="<%= GetNextHref() %>">Next&gt;&gt;</a>
        </div>
    </FooterTemplate>
</asp:Repeater>
